package com.huanf.service.impl;

import com.huanf.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author: 35238
 * 功能:
 * 时间: 2023-12-29 14:11
 */
@DubboService //第二步: 为实现类添加@DubboService
public class UserServiceImpl implements UserService { //注意UserService接口是dubbo-anno-api模块写好的
    @Override
    public boolean login(String name, String password) {
        System.out.println("我是dubbo-anno-provider模块，我实现了dubbo-anno-api模块的UserService的login方法，欢迎: "+name+"，你的密码是: "+password);
        return false;
    }
}
